﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainPopUp.master" AutoEventWireup="true"
    CodeFile="DisplayUseCase.aspx.cs" Inherits="PopUp_DisplayUseCase" Theme="Main" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphcphSemiCASEPopUp" runat="Server">
    <table class="AnaTablo" style="width: 100%">
        <tr>
            <th class="ThBaslikRenk1">
                USE CASE DETAILS
            </th>
        </tr>
        <tr>
            <td>
                <ajt:TabContainer runat="server">
                    <ajt:TabPanel ID="TabUseCaseInfo" runat="server" HeaderText="USE CASE INFO">
                        <ContentTemplate>
                            <table>
                                <tr>
                                    <td colspan="2">
                                        <asp:RadioButton ID="RadioButtonFunctionalReq" runat="server" Text="Functional Requirement"
                                            Checked="true" GroupName="Func" Enabled="false" />
                                        <asp:RadioButton ID="RadioButtonNonFunctional" runat="server" Text="Nonfunctional Requirement"
                                            GroupName="Func" Enabled="false" />
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td class="TdRenkSol" style="width: 25%">
                                        Use Case Name:
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxUseCaseName" runat="server" Width="596" uciZorunlu="true"
                                            ValidationGroup="UC" />
                                    </td>
                                </tr>
                            </table>
                            <table id="TableFunctional" runat="server">
                                <tr>
                                    <td class="TdRenkSol">
                                        Scope:
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxScope" runat="server" Width="596" uciZorunlu="true"
                                            ValidationGroup="UC" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Level:
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxLevel" runat="server" Width="596" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Primary Actor:
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxPrimaryActor" runat="server" Width="596" uciZorunlu="true"
                                            ValidationGroup="UC" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Stakeholders - Interests:
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxStakeHolders" runat="server" Width="596" TextMode="MultiLine"
                                            Height="50" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Preconditions:
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxPreconditions" runat="server" Width="596"
                                            TextMode="MultiLine" Height="50" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Success Guarantees:
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxSuccessGuarantees" runat="server" Width="596"
                                            uciZorunlu="true" ValidationGroup="UC" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Special Requirements:
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxSpecialRequirements" runat="server" Width="596"
                                            TextMode="MultiLine" Height="50" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Technology and Data Var. List
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxTechnology" runat="server" Width="596" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Frequency of Occurence:
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxFrequency" runat="server" Width="596" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Miscellaneaous:
                                    </td>
                                    <td>
                                        <SemiCASE:GenelTextBox ID="GenelTextBoxMisc" runat="server" Width="596" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Status:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="DropDownListStatus" runat="server" DataValueField="StatusID"
                                            DataTextField="StatusName">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="TdRenkSol">
                                        Priority:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="DropDownListPriority" runat="server">
                                            <asp:ListItem Text="Select Priority" Value="0"></asp:ListItem>
                                            <asp:ListItem Text="HIGH" Value="HIGH"></asp:ListItem>
                                            <asp:ListItem Text="MEDIUM" Value="MEDIUM"></asp:ListItem>
                                            <asp:ListItem Text="LOW" Value="LOW"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </ajt:TabPanel>
                    <ajt:TabPanel ID="TabMss" runat="server" HeaderText="MAIN SUCCESS SCENARIOS">
                        <ContentTemplate>
                            <asp:GridView ID="gvMSS" runat="server" AutoGenerateColumns="False" Width="100%"
                                DataKeyNames="MssID,SiraNo" EmptyDataText="There is no main success scenario."
                                AllowPaging="false">
                                <Columns>
                                    <asp:BoundField DataField="SiraNo" HeaderText="" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" />
                                    <asp:BoundField DataField="Name" HeaderText="Mss" ItemStyle-CssClass="columnborder" />
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            DELETE
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ButtonDelete" runat="server" ToolTip="Delete" ImageUrl="~/App_Themes/Main/Images/Ikonlar/kapat.gif"
                                                CommandArgument='<%# Eval("MssID") %>' CommandName="DeleteMSS" OnClientClick="javascript:return confirm('MSS will be deleted. Are you sure?')" />
                                        </ItemTemplate>
                                        <ItemStyle Width="3%" HorizontalAlign="Center" CssClass="columnborder" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            ADD EXT.
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ButtonAddExtention" runat="server" ToolTip="Add Extention" ImageUrl="~/App_Themes/Main/Images/Ikonlar/ekle.gif"
                                                CommandArgument='<%# Eval("MssID") %>' CommandName="AddExtention" />
                                        </ItemTemplate>
                                        <ItemStyle Width="15%" HorizontalAlign="Center" CssClass="columnborder" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            ORDER
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ButtonUp" runat="server" ToolTip="Up" ImageUrl="~/App_Themes/Main/Images/Ikonlar/yukari.gif"
                                                CommandArgument='<%# Eval("SiraNo") %>' CommandName="UpMss" />
                                            <asp:ImageButton ID="ButtonDown" runat="server" ToolTip="Down" ImageUrl="~/App_Themes/Main/Images/Ikonlar/asagi.gif"
                                                CommandArgument='<%# Eval("SiraNo") %>' CommandName="DownMss" />
                                        </ItemTemplate>
                                        <ItemStyle Width="15%" HorizontalAlign="Center" CssClass="columnborder" />
                                    </asp:TemplateField>
                                </Columns>
                                <EmptyDataRowStyle Font-Bold="True" ForeColor="Red" />
                            </asp:GridView>
                        </ContentTemplate>
                    </ajt:TabPanel>
                    <ajt:TabPanel ID="TabExtention" runat="server" HeaderText="EXTENTIONS">
                        <ContentTemplate>
                            <asp:GridView ID="gvExtention" runat="server" AutoGenerateColumns="False" Width="100%"
                                DataKeyNames="ExtentionID" EmptyDataText="There is no extention." AllowPaging="false">
                                <Columns>
                                    <asp:BoundField DataField="SiraNo" HeaderText="" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" Visible="false" />
                                    <asp:BoundField DataField="MssSiraNo" HeaderText="" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" />
                                    <asp:BoundField DataField="OrderSign" HeaderText="" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" />
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            Extention
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="LabelExtentionName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                            <br />
                                            <br />
                                            <asp:GridView ID="gvExtentionStep" runat="server" AutoGenerateColumns="False" Width="100%"
                                                DataKeyNames="StepID" AllowPaging="false">
                                                <Columns>
                                                    <asp:BoundField DataField="SiraNo" HeaderText="" ItemStyle-CssClass="columnborder"
                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" />
                                                    <asp:BoundField DataField="StepName" HeaderText="Step" ItemStyle-CssClass="columnborder"
                                                        ItemStyle-HorizontalAlign="Left" />
                                                    <asp:TemplateField>
                                                        <HeaderTemplate>
                                                            DELETE
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:ImageButton ID="ButtonDelete" runat="server" ToolTip="Delete" ImageUrl="~/App_Themes/Main/Images/Ikonlar/kapat.gif"
                                                                CommandArgument='<%# Eval("StepID") %>' CommandName="DeleteStep" OnClientClick="javascript:return confirm('Extention step will be deleted. Are you sure?')" />
                                                        </ItemTemplate>
                                                        <ItemStyle Width="3%" HorizontalAlign="Center" CssClass="columnborder" />
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" CssClass="columnborder" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            DELETE
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ButtonDelete" runat="server" ToolTip="Delete" ImageUrl="~/App_Themes/Main/Images/Ikonlar/kapat.gif"
                                                CommandArgument='<%# Eval("ExtentionID") %>' CommandName="DeleteExtention" OnClientClick="javascript:return confirm('Extention will be deleted. Are you sure?')" />
                                        </ItemTemplate>
                                        <ItemStyle Width="3%" HorizontalAlign="Center" CssClass="columnborder" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            ADD STEP.
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ButtonAddExtention" runat="server" ToolTip="Add Step" ImageUrl="~/App_Themes/Main/Images/Ikonlar/ekle.gif"
                                                CommandArgument='<%# Eval("ExtentionID") %>' CommandName="AddStep" />
                                        </ItemTemplate>
                                        <ItemStyle Width="13%" HorizontalAlign="Center" CssClass="columnborder" />
                                    </asp:TemplateField>
                                </Columns>
                                <EmptyDataRowStyle Font-Bold="True" ForeColor="Red" />
                            </asp:GridView>
                        </ContentTemplate>
                    </ajt:TabPanel>
                    <ajt:TabPanel ID="TabTestCase" runat="server" HeaderText="TEST CASES">
                        <ContentTemplate>
                            <asp:GridView ID="gvTestCase" runat="server" AutoGenerateColumns="False" Width="100%"
                                DataKeyNames="TestCaseID" EmptyDataText="There is no defined test case.">
                                <Columns>
                                    <asp:BoundField DataField="MssSiraNo" HeaderText="MSS" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="OrderSign" HeaderText="EXT." ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="StepNo" HeaderText="STEP" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="Description" HeaderText="DESCRIPTION" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="PreCondition" HeaderText="PRECONDITION" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="PostCondition" HeaderText="POSTCONDITION" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="DataRequired" HeaderText="DATA REQUIRED" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="Priority" HeaderText="PRIORITY" ItemStyle-CssClass="columnborder" />
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </ajt:TabPanel>
                    <ajt:TabPanel ID="TabWorkItem" runat="server" HeaderText="WORK ITEMS">
                        <ContentTemplate>
                            <asp:GridView ID="gvWorkItem" runat="server" AutoGenerateColumns="False" Width="100%"
                                DataKeyNames="WorkItemID" EmptyDataText="There is no defined work item.">
                                <Columns>
                                    <asp:BoundField DataField="SiraNo" HeaderText="No" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="MssSiraNo" HeaderText="MSS" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="OrderSign" HeaderText="EXT." ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="StepNo" HeaderText="STEP" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="StartDate" HeaderText="StartDate" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="EndDate" HeaderText="EndDate" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="Resources" HeaderText="Resources" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="Predecessor" HeaderText="Predecessor" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="Percentage" HeaderText="Percentage" ItemStyle-CssClass="columnborder" />
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </ajt:TabPanel>
                </ajt:TabContainer>
</asp:Content>
